package com.xingkeduo.model.example;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class TMarketingRelevantExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TMarketingRelevantExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andMarketingIdIsNull() {
            addCriterion("marketing_id is null");
            return (Criteria) this;
        }

        public Criteria andMarketingIdIsNotNull() {
            addCriterion("marketing_id is not null");
            return (Criteria) this;
        }

        public Criteria andMarketingIdEqualTo(Long value) {
            addCriterion("marketing_id =", value, "marketingId");
            return (Criteria) this;
        }

        public Criteria andMarketingIdNotEqualTo(Long value) {
            addCriterion("marketing_id <>", value, "marketingId");
            return (Criteria) this;
        }

        public Criteria andMarketingIdGreaterThan(Long value) {
            addCriterion("marketing_id >", value, "marketingId");
            return (Criteria) this;
        }

        public Criteria andMarketingIdGreaterThanOrEqualTo(Long value) {
            addCriterion("marketing_id >=", value, "marketingId");
            return (Criteria) this;
        }

        public Criteria andMarketingIdLessThan(Long value) {
            addCriterion("marketing_id <", value, "marketingId");
            return (Criteria) this;
        }

        public Criteria andMarketingIdLessThanOrEqualTo(Long value) {
            addCriterion("marketing_id <=", value, "marketingId");
            return (Criteria) this;
        }

        public Criteria andMarketingIdIn(List<Long> values) {
            addCriterion("marketing_id in", values, "marketingId");
            return (Criteria) this;
        }

        public Criteria andMarketingIdNotIn(List<Long> values) {
            addCriterion("marketing_id not in", values, "marketingId");
            return (Criteria) this;
        }

        public Criteria andMarketingIdBetween(Long value1, Long value2) {
            addCriterion("marketing_id between", value1, value2, "marketingId");
            return (Criteria) this;
        }

        public Criteria andMarketingIdNotBetween(Long value1, Long value2) {
            addCriterion("marketing_id not between", value1, value2, "marketingId");
            return (Criteria) this;
        }

        public Criteria andMarketingTypeIsNull() {
            addCriterion("marketing_type is null");
            return (Criteria) this;
        }

        public Criteria andMarketingTypeIsNotNull() {
            addCriterion("marketing_type is not null");
            return (Criteria) this;
        }

        public Criteria andMarketingTypeEqualTo(Integer value) {
            addCriterion("marketing_type =", value, "marketingType");
            return (Criteria) this;
        }

        public Criteria andMarketingTypeNotEqualTo(Integer value) {
            addCriterion("marketing_type <>", value, "marketingType");
            return (Criteria) this;
        }

        public Criteria andMarketingTypeGreaterThan(Integer value) {
            addCriterion("marketing_type >", value, "marketingType");
            return (Criteria) this;
        }

        public Criteria andMarketingTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("marketing_type >=", value, "marketingType");
            return (Criteria) this;
        }

        public Criteria andMarketingTypeLessThan(Integer value) {
            addCriterion("marketing_type <", value, "marketingType");
            return (Criteria) this;
        }

        public Criteria andMarketingTypeLessThanOrEqualTo(Integer value) {
            addCriterion("marketing_type <=", value, "marketingType");
            return (Criteria) this;
        }

        public Criteria andMarketingTypeIn(List<Integer> values) {
            addCriterion("marketing_type in", values, "marketingType");
            return (Criteria) this;
        }

        public Criteria andMarketingTypeNotIn(List<Integer> values) {
            addCriterion("marketing_type not in", values, "marketingType");
            return (Criteria) this;
        }

        public Criteria andMarketingTypeBetween(Integer value1, Integer value2) {
            addCriterion("marketing_type between", value1, value2, "marketingType");
            return (Criteria) this;
        }

        public Criteria andMarketingTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("marketing_type not between", value1, value2, "marketingType");
            return (Criteria) this;
        }

        public Criteria andMarketingServiceTypeIsNull() {
            addCriterion("marketing_service_type is null");
            return (Criteria) this;
        }

        public Criteria andMarketingServiceTypeIsNotNull() {
            addCriterion("marketing_service_type is not null");
            return (Criteria) this;
        }

        public Criteria andMarketingServiceTypeEqualTo(String value) {
            addCriterion("marketing_service_type =", value, "marketingServiceType");
            return (Criteria) this;
        }

        public Criteria andMarketingServiceTypeNotEqualTo(String value) {
            addCriterion("marketing_service_type <>", value, "marketingServiceType");
            return (Criteria) this;
        }

        public Criteria andMarketingServiceTypeGreaterThan(String value) {
            addCriterion("marketing_service_type >", value, "marketingServiceType");
            return (Criteria) this;
        }

        public Criteria andMarketingServiceTypeGreaterThanOrEqualTo(String value) {
            addCriterion("marketing_service_type >=", value, "marketingServiceType");
            return (Criteria) this;
        }

        public Criteria andMarketingServiceTypeLessThan(String value) {
            addCriterion("marketing_service_type <", value, "marketingServiceType");
            return (Criteria) this;
        }

        public Criteria andMarketingServiceTypeLessThanOrEqualTo(String value) {
            addCriterion("marketing_service_type <=", value, "marketingServiceType");
            return (Criteria) this;
        }

        public Criteria andMarketingServiceTypeLike(String value) {
            addCriterion("marketing_service_type like", value, "marketingServiceType");
            return (Criteria) this;
        }

        public Criteria andMarketingServiceTypeNotLike(String value) {
            addCriterion("marketing_service_type not like", value, "marketingServiceType");
            return (Criteria) this;
        }

        public Criteria andMarketingServiceTypeIn(List<String> values) {
            addCriterion("marketing_service_type in", values, "marketingServiceType");
            return (Criteria) this;
        }

        public Criteria andMarketingServiceTypeNotIn(List<String> values) {
            addCriterion("marketing_service_type not in", values, "marketingServiceType");
            return (Criteria) this;
        }

        public Criteria andMarketingServiceTypeBetween(String value1, String value2) {
            addCriterion("marketing_service_type between", value1, value2, "marketingServiceType");
            return (Criteria) this;
        }

        public Criteria andMarketingServiceTypeNotBetween(String value1, String value2) {
            addCriterion("marketing_service_type not between", value1, value2, "marketingServiceType");
            return (Criteria) this;
        }

        public Criteria andSupportBusinessIdIsNull() {
            addCriterion("support_business_id is null");
            return (Criteria) this;
        }

        public Criteria andSupportBusinessIdIsNotNull() {
            addCriterion("support_business_id is not null");
            return (Criteria) this;
        }

        public Criteria andSupportBusinessIdEqualTo(Long value) {
            addCriterion("support_business_id =", value, "supportBusinessId");
            return (Criteria) this;
        }

        public Criteria andSupportBusinessIdNotEqualTo(Long value) {
            addCriterion("support_business_id <>", value, "supportBusinessId");
            return (Criteria) this;
        }

        public Criteria andSupportBusinessIdGreaterThan(Long value) {
            addCriterion("support_business_id >", value, "supportBusinessId");
            return (Criteria) this;
        }

        public Criteria andSupportBusinessIdGreaterThanOrEqualTo(Long value) {
            addCriterion("support_business_id >=", value, "supportBusinessId");
            return (Criteria) this;
        }

        public Criteria andSupportBusinessIdLessThan(Long value) {
            addCriterion("support_business_id <", value, "supportBusinessId");
            return (Criteria) this;
        }

        public Criteria andSupportBusinessIdLessThanOrEqualTo(Long value) {
            addCriterion("support_business_id <=", value, "supportBusinessId");
            return (Criteria) this;
        }

        public Criteria andSupportBusinessIdIn(List<Long> values) {
            addCriterion("support_business_id in", values, "supportBusinessId");
            return (Criteria) this;
        }

        public Criteria andSupportBusinessIdNotIn(List<Long> values) {
            addCriterion("support_business_id not in", values, "supportBusinessId");
            return (Criteria) this;
        }

        public Criteria andSupportBusinessIdBetween(Long value1, Long value2) {
            addCriterion("support_business_id between", value1, value2, "supportBusinessId");
            return (Criteria) this;
        }

        public Criteria andSupportBusinessIdNotBetween(Long value1, Long value2) {
            addCriterion("support_business_id not between", value1, value2, "supportBusinessId");
            return (Criteria) this;
        }

        public Criteria andServprodNameIsNull() {
            addCriterion("servprod_name is null");
            return (Criteria) this;
        }

        public Criteria andServprodNameIsNotNull() {
            addCriterion("servprod_name is not null");
            return (Criteria) this;
        }

        public Criteria andServprodNameEqualTo(String value) {
            addCriterion("servprod_name =", value, "servprodName");
            return (Criteria) this;
        }

        public Criteria andServprodNameNotEqualTo(String value) {
            addCriterion("servprod_name <>", value, "servprodName");
            return (Criteria) this;
        }

        public Criteria andServprodNameGreaterThan(String value) {
            addCriterion("servprod_name >", value, "servprodName");
            return (Criteria) this;
        }

        public Criteria andServprodNameGreaterThanOrEqualTo(String value) {
            addCriterion("servprod_name >=", value, "servprodName");
            return (Criteria) this;
        }

        public Criteria andServprodNameLessThan(String value) {
            addCriterion("servprod_name <", value, "servprodName");
            return (Criteria) this;
        }

        public Criteria andServprodNameLessThanOrEqualTo(String value) {
            addCriterion("servprod_name <=", value, "servprodName");
            return (Criteria) this;
        }

        public Criteria andServprodNameLike(String value) {
            addCriterion("servprod_name like", value, "servprodName");
            return (Criteria) this;
        }

        public Criteria andServprodNameNotLike(String value) {
            addCriterion("servprod_name not like", value, "servprodName");
            return (Criteria) this;
        }

        public Criteria andServprodNameIn(List<String> values) {
            addCriterion("servprod_name in", values, "servprodName");
            return (Criteria) this;
        }

        public Criteria andServprodNameNotIn(List<String> values) {
            addCriterion("servprod_name not in", values, "servprodName");
            return (Criteria) this;
        }

        public Criteria andServprodNameBetween(String value1, String value2) {
            addCriterion("servprod_name between", value1, value2, "servprodName");
            return (Criteria) this;
        }

        public Criteria andServprodNameNotBetween(String value1, String value2) {
            addCriterion("servprod_name not between", value1, value2, "servprodName");
            return (Criteria) this;
        }

        public Criteria andTotalQuantityIsNull() {
            addCriterion("total_quantity is null");
            return (Criteria) this;
        }

        public Criteria andTotalQuantityIsNotNull() {
            addCriterion("total_quantity is not null");
            return (Criteria) this;
        }

        public Criteria andTotalQuantityEqualTo(Integer value) {
            addCriterion("total_quantity =", value, "totalQuantity");
            return (Criteria) this;
        }

        public Criteria andTotalQuantityNotEqualTo(Integer value) {
            addCriterion("total_quantity <>", value, "totalQuantity");
            return (Criteria) this;
        }

        public Criteria andTotalQuantityGreaterThan(Integer value) {
            addCriterion("total_quantity >", value, "totalQuantity");
            return (Criteria) this;
        }

        public Criteria andTotalQuantityGreaterThanOrEqualTo(Integer value) {
            addCriterion("total_quantity >=", value, "totalQuantity");
            return (Criteria) this;
        }

        public Criteria andTotalQuantityLessThan(Integer value) {
            addCriterion("total_quantity <", value, "totalQuantity");
            return (Criteria) this;
        }

        public Criteria andTotalQuantityLessThanOrEqualTo(Integer value) {
            addCriterion("total_quantity <=", value, "totalQuantity");
            return (Criteria) this;
        }

        public Criteria andTotalQuantityIn(List<Integer> values) {
            addCriterion("total_quantity in", values, "totalQuantity");
            return (Criteria) this;
        }

        public Criteria andTotalQuantityNotIn(List<Integer> values) {
            addCriterion("total_quantity not in", values, "totalQuantity");
            return (Criteria) this;
        }

        public Criteria andTotalQuantityBetween(Integer value1, Integer value2) {
            addCriterion("total_quantity between", value1, value2, "totalQuantity");
            return (Criteria) this;
        }

        public Criteria andTotalQuantityNotBetween(Integer value1, Integer value2) {
            addCriterion("total_quantity not between", value1, value2, "totalQuantity");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Integer value) {
            addCriterion("status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Integer value) {
            addCriterion("status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Integer value) {
            addCriterion("status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Integer value) {
            addCriterion("status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Integer value) {
            addCriterion("status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Integer> values) {
            addCriterion("status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Integer> values) {
            addCriterion("status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Integer value1, Integer value2) {
            addCriterion("status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("status not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("update_time is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("update_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("update_time =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("update_time <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("update_time >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("update_time >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("update_time <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("update_time <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("update_time in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("update_time not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("update_time between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("update_time not between", value1, value2, "updateTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}